/*
 * =====================================================================================
 *
 *       Filename:  temp_sensor.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  10/03/2010 08:26:46 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Ken Chen (Ziliang), zlchen.ken@gmail.com
 *        Company:  EMC
 *
 * =====================================================================================
 */

#include "temp_sensor.h"

TemperatureSensor::TemperatureSensor()
	: itsTemp( 0.0 ) 
{
}

double TemperatureSensor::getTemperature( void ) const
{
	return itsTemp;
}

void TemperatureSensor::setTemperature( double temp )
{
	if( temp != itsTemp )
	{
	  itsTemp = temp;
		notifyObservers();
	}
}

